<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hashcat-3.201: H:/TDDownload/Hashcat v3.20/hashcat-3.201/src/shared.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">hashcat-3.201
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_06fe396e3e859736df6d43ad26baa72e.html">hashcat-3.201</a></li><li class="navelem"><a class="el" href="dir_9ce3dfc5d638c7f8b2c4ec0f6627771b.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">shared.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;common.h&quot;</code><br />
<code>#include &quot;types.h&quot;</code><br />
<code>#include &quot;shared.h&quot;</code><br />
<code>#include &quot;sort_r.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for shared.c:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c__incl.gif" border="0" usemap="#_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2shared_8c" alt=""/></div>
<map name="_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2shared_8c" id="_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2shared_8c">
<area shape="rect"  title=" " alt="" coords="111,5,273,61"/>
<area shape="rect"  title=" " alt="" coords="5,109,88,136"/>
<area shape="rect"  title=" " alt="" coords="113,109,178,136"/>
<area shape="rect"  title=" " alt="" coords="203,109,275,136"/>
<area shape="rect"  title=" " alt="" coords="299,109,365,136"/>
</map>
</div>
</div>
<p><a href="shared_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a5c2084859a2426c7b75489b724832b6e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#a5c2084859a2426c7b75489b724832b6e">is_power_of_2</a> (const u32 v)</td></tr>
<tr class="separator:a5c2084859a2426c7b75489b724832b6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abaf320524af0edfa27422ff6ebebd0d8"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#abaf320524af0edfa27422ff6ebebd0d8">get_random_num</a> (const u32 min, const u32 max)</td></tr>
<tr class="separator:abaf320524af0edfa27422ff6ebebd0d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a997201f624ca11fd08aa39660b7c1d09"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#a997201f624ca11fd08aa39660b7c1d09">mydivc32</a> (const u32 dividend, const u32 divisor)</td></tr>
<tr class="separator:a997201f624ca11fd08aa39660b7c1d09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58ba2564d980905f97564922b3712f02"><td class="memItemLeft" align="right" valign="top">u64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#a58ba2564d980905f97564922b3712f02">mydivc64</a> (const u64 dividend, const u64 divisor)</td></tr>
<tr class="separator:a58ba2564d980905f97564922b3712f02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae621a47ec2426152164e81fc9bd615e9"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#ae621a47ec2426152164e81fc9bd615e9">filename_from_filepath</a> (char *filepath)</td></tr>
<tr class="separator:ae621a47ec2426152164e81fc9bd615e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1322f76e741a3aeb3e88d330c13c6d28"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#a1322f76e741a3aeb3e88d330c13c6d28">naive_replace</a> (char *s, const char key_char, const char replace_char)</td></tr>
<tr class="separator:a1322f76e741a3aeb3e88d330c13c6d28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5243867de29adb2b1b3d8c72dca3e963"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#a5243867de29adb2b1b3d8c72dca3e963">naive_escape</a> (char *s, size_t s_max, const char key_char, const char escape_char)</td></tr>
<tr class="separator:a5243867de29adb2b1b3d8c72dca3e963"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe072f4af6ab3e03645a7a0c9bd3f822"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#afe072f4af6ab3e03645a7a0c9bd3f822">hc_sleep_msec</a> (const u32 msec)</td></tr>
<tr class="separator:afe072f4af6ab3e03645a7a0c9bd3f822"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71f74d0049c2c7dafe37dc1f57d0e4b1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#a71f74d0049c2c7dafe37dc1f57d0e4b1">hc_sleep</a> (const u32 sec)</td></tr>
<tr class="separator:a71f74d0049c2c7dafe37dc1f57d0e4b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a677b4a7f6205adab90fcd99f61af2812"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#a677b4a7f6205adab90fcd99f61af2812">hc_qsort_r</a> (void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *, void *), void *arg)</td></tr>
<tr class="separator:a677b4a7f6205adab90fcd99f61af2812"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac121c4bbdef9ff9a0c8586a04ab5d8e0"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#ac121c4bbdef9ff9a0c8586a04ab5d8e0">hc_bsearch_r</a> (const void *key, const void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *, void *), void *arg)</td></tr>
<tr class="separator:ac121c4bbdef9ff9a0c8586a04ab5d8e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2657fd919185f7516449e460e3cbeefa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#a2657fd919185f7516449e460e3cbeefa">setup_environment_variables</a> ()</td></tr>
<tr class="separator:a2657fd919185f7516449e460e3cbeefa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3cf1b86213af6a19cdd7d2e8fa2ef2e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#ad3cf1b86213af6a19cdd7d2e8fa2ef2e">setup_umask</a> ()</td></tr>
<tr class="separator:ad3cf1b86213af6a19cdd7d2e8fa2ef2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9d3b954c23d31f69d8c976490457da6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shared_8c.html#aa9d3b954c23d31f69d8c976490457da6">setup_seeding</a> (const bool rp_gen_seed_chgd, const u32 rp_gen_seed)</td></tr>
<tr class="separator:aa9d3b954c23d31f69d8c976490457da6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ae621a47ec2426152164e81fc9bd615e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae621a47ec2426152164e81fc9bd615e9">&#9670;&nbsp;</a></span>filename_from_filepath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* filename_from_filepath </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>filepath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00040">40</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;{</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  <span class="keywordtype">char</span> *ptr = NULL;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  <span class="keywordflow">if</span> ((ptr = strrchr (filepath, <span class="charliteral">&#39;/&#39;</span>)) != NULL)</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  {</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    ptr++;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  }</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((ptr = strrchr (filepath, <span class="charliteral">&#39;\\&#39;</span>)) != NULL)</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  {</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    ptr++;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  }</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <span class="keywordflow">else</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  {</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    ptr = filepath;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  }</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <span class="keywordflow">return</span> ptr;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="opencl_8c_source.html#l03129">opencl_session_begin()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c_ae621a47ec2426152164e81fc9bd615e9_icgraph.gif" border="0" usemap="#shared_8c_ae621a47ec2426152164e81fc9bd615e9_icgraph" alt=""/></div>
<map name="shared_8c_ae621a47ec2426152164e81fc9bd615e9_icgraph" id="shared_8c_ae621a47ec2426152164e81fc9bd615e9_icgraph">
<area shape="rect"  title=" " alt="" coords="655,5,805,32"/>
<area shape="rect"  href="opencl_8c.html#a25858ed9c49bd2972bb375ec8190c2ba" title=" " alt="" coords="456,5,607,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="abaf320524af0edfa27422ff6ebebd0d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abaf320524af0edfa27422ff6ebebd0d8">&#9670;&nbsp;</a></span>get_random_num()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 get_random_num </td>
          <td>(</td>
          <td class="paramtype">const u32&#160;</td>
          <td class="paramname"><em>min</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const u32&#160;</td>
          <td class="paramname"><em>max</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00015">15</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;  <span class="keywordflow">if</span> (min == max) <span class="keywordflow">return</span> (min);</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;  <span class="keywordflow">return</span> (((u32) rand () % (max - min)) + min);</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="rp_8c_source.html#l00146">generate_random_rule()</a>, and <a class="el" href="loopback_8c_source.html#l00089">loopback_write_open()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c_abaf320524af0edfa27422ff6ebebd0d8_icgraph.gif" border="0" usemap="#shared_8c_abaf320524af0edfa27422ff6ebebd0d8_icgraph" alt=""/></div>
<map name="shared_8c_abaf320524af0edfa27422ff6ebebd0d8_icgraph" id="shared_8c_abaf320524af0edfa27422ff6ebebd0d8_icgraph">
<area shape="rect"  title=" " alt="" coords="1015,31,1137,57"/>
<area shape="rect"  href="rp_8c.html#a69b4d91ff049572223f4d5dc7fbd9bea" title=" " alt="" coords="816,5,967,32"/>
<area shape="rect"  href="loopback_8c.html#a3fb55450d503e180f8182331c15cc5fc" title=" " alt="" coords="820,56,963,83"/>
<area shape="rect"  href="rp_8c.html#affbc73bf0cbf31342a47a63309bcdc02" title=" " alt="" coords="619,5,768,32"/>
<area shape="rect"  href="straight_8c.html#ac38042838c02bcb1ca4b24b87047b34d" title=" " alt="" coords="456,5,571,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,31,408,57"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,31,277,57"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,31,56,57"/>
<area shape="rect"  href="hashcat_8c.html#a9ec4f74d423ae0bd4aa6e960632b7086" title=" " alt="" coords="649,56,737,83"/>
<area shape="rect"  href="hashcat_8c.html#ad6cc36d03dcdad3413c794efecb3178a" title=" " alt="" coords="469,56,557,83"/>
</map>
</div>

</div>
</div>
<a id="ac121c4bbdef9ff9a0c8586a04ab5d8e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac121c4bbdef9ff9a0c8586a04ab5d8e0">&#9670;&nbsp;</a></span>hc_bsearch_r()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* hc_bsearch_r </td>
          <td>(</td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nmemb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int(*)(const void *, const void *, void *)&#160;</td>
          <td class="paramname"><em>compar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00157">157</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;{</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> l = 0, r = nmemb; r; r &gt;&gt;= 1)</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;  {</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">size_t</span> m = r &gt;&gt; 1;</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">size_t</span> c = l + m;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> *next = (<span class="keywordtype">char</span> *) base + (c * size);</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">int</span> cmp = (*compar) (key, next, arg);</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordflow">if</span> (cmp &gt; 0)</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    {</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;      l += m + 1;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;      r--;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    }</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="keywordflow">if</span> (cmp == 0) <span class="keywordflow">return</span> ((<span class="keywordtype">void</span> *) next);</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;  }</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;  <span class="keywordflow">return</span> (NULL);</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="potfile_8c_source.html#l00263">potfile_remove_parse()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c_ac121c4bbdef9ff9a0c8586a04ab5d8e0_icgraph.gif" border="0" usemap="#shared_8c_ac121c4bbdef9ff9a0c8586a04ab5d8e0_icgraph" alt=""/></div>
<map name="shared_8c_ac121c4bbdef9ff9a0c8586a04ab5d8e0_icgraph" id="shared_8c_ac121c4bbdef9ff9a0c8586a04ab5d8e0_icgraph">
<area shape="rect"  title=" " alt="" coords="647,5,747,32"/>
<area shape="rect"  href="potfile_8c.html#ab34391a2f48c7208b15946dd8759eeea" title=" " alt="" coords="456,5,599,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a677b4a7f6205adab90fcd99f61af2812"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a677b4a7f6205adab90fcd99f61af2812">&#9670;&nbsp;</a></span>hc_qsort_r()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hc_qsort_r </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>nmemb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int(*)(const void *, const void *, void *)&#160;</td>
          <td class="paramname"><em>compar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00152">152</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;{</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;  sort_r (base, nmemb, size, compar, arg);</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hashes_8c_source.html#l00442">hashes_init_stage1()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c_a677b4a7f6205adab90fcd99f61af2812_icgraph.gif" border="0" usemap="#shared_8c_a677b4a7f6205adab90fcd99f61af2812_icgraph" alt=""/></div>
<map name="shared_8c_a677b4a7f6205adab90fcd99f61af2812_icgraph" id="shared_8c_a677b4a7f6205adab90fcd99f61af2812_icgraph">
<area shape="rect"  title=" " alt="" coords="639,5,721,32"/>
<area shape="rect"  href="hashes_8c.html#aa009c18f9bedd6179e77e24c5752807e" title=" " alt="" coords="456,5,591,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a71f74d0049c2c7dafe37dc1f57d0e4b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71f74d0049c2c7dafe37dc1f57d0e4b1">&#9670;&nbsp;</a></span>hc_sleep()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hc_sleep </td>
          <td>(</td>
          <td class="paramtype">const u32&#160;</td>
          <td class="paramname"><em>sec</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00135">135</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;{</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">  #if defined (_WIN)</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;  Sleep (sec * 1000);</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="preprocessor">  #else</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;  sleep (sec);</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="preprocessor">  #endif</span></div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="monitor_8c_source.html#l00046">monitor()</a>, <a class="el" href="outfile__check_8c_source.html#l00019">outfile_remove()</a>, and <a class="el" href="opencl_8c_source.html#l01676">run_cracker()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c_a71f74d0049c2c7dafe37dc1f57d0e4b1_icgraph.gif" border="0" usemap="#shared_8c_a71f74d0049c2c7dafe37dc1f57d0e4b1_icgraph" alt=""/></div>
<map name="shared_8c_a71f74d0049c2c7dafe37dc1f57d0e4b1_icgraph" id="shared_8c_a71f74d0049c2c7dafe37dc1f57d0e4b1_icgraph">
<area shape="rect"  title=" " alt="" coords="1269,56,1344,83"/>
<area shape="rect"  href="monitor_8c.html#a6070c1efbb12309f3d3504ccd1f6ca3d" title=" " alt="" coords="1143,5,1209,32"/>
<area shape="rect"  href="outfile__check_8c.html#a39b7fbaa8d12928613fcd7399eb49ad2" title=" " alt="" coords="979,56,1083,83"/>
<area shape="rect"  href="opencl_8c.html#af8bef12676549083a86b2986c456f72d" title=" " alt="" coords="1131,107,1221,133"/>
<area shape="rect"  href="monitor_8c.html#ab9ac4a7731cf2a12f37be8fcdaa38a43" title=" " alt="" coords="651,5,759,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,56,408,83"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,56,277,83"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,56,56,83"/>
<area shape="rect"  href="outfile__check_8c.html#aa0e20db36255679b69e7423e65995f99" title=" " alt="" coords="456,56,603,83"/>
<area shape="rect"  href="dispatch_8c.html#a0502555fe69aef3e7b8c3886ef18c145" title=" " alt="" coords="1007,107,1054,133"/>
<area shape="rect"  href="dispatch_8c.html#a274118ca9e580459d6e82f6d61a34d59" title=" " alt="" coords="990,157,1071,184"/>
<area shape="rect"  href="dispatch_8c.html#a45ffdf5a91d67bdc7a27b7fe7d39761a" title=" " alt="" coords="824,107,913,133"/>
<area shape="rect"  href="hashcat_8c.html#a9ec4f74d423ae0bd4aa6e960632b7086" title=" " alt="" coords="661,107,749,133"/>
<area shape="rect"  href="hashcat_8c.html#ad6cc36d03dcdad3413c794efecb3178a" title=" " alt="" coords="485,107,573,133"/>
<area shape="rect"  href="dispatch_8c.html#a9e518ec031f388304424fb2852075038" title=" " alt="" coords="807,157,931,184"/>
</map>
</div>

</div>
</div>
<a id="afe072f4af6ab3e03645a7a0c9bd3f822"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe072f4af6ab3e03645a7a0c9bd3f822">&#9670;&nbsp;</a></span>hc_sleep_msec()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hc_sleep_msec </td>
          <td>(</td>
          <td class="paramtype">const u32&#160;</td>
          <td class="paramname"><em>msec</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00126">126</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;{</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="preprocessor">  #if defined (_WIN)</span></div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;  Sleep (msec);</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="preprocessor">  #else</span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;  usleep (msec * 1000);</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">  #endif</span></div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="terminal_8c_source.html#l00128">keypress()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c_afe072f4af6ab3e03645a7a0c9bd3f822_icgraph.gif" border="0" usemap="#shared_8c_afe072f4af6ab3e03645a7a0c9bd3f822_icgraph" alt=""/></div>
<map name="shared_8c_afe072f4af6ab3e03645a7a0c9bd3f822_icgraph" id="shared_8c_afe072f4af6ab3e03645a7a0c9bd3f822_icgraph">
<area shape="rect"  title=" " alt="" coords="3037,397,3151,424"/>
<area shape="rect"  href="terminal_8c.html#a99e7c4c326b4b2acdbe60cedc81efea1" title=" " alt="" coords="2915,397,2989,424"/>
<area shape="rect"  href="terminal_8c.html#a5a70871e3050a17bffd2e15779d536d2" title=" " alt="" coords="2748,397,2867,424"/>
<area shape="rect"  href="main_8c.html#aa9cb60ea1fd75f8faf5ce16454f526ec" title=" " alt="" coords="2540,397,2700,424"/>
<area shape="rect"  href="main_8c.html#a73c3170c7171851eb6e8f5a402599423" title=" " alt="" coords="2440,397,2492,424"/>
<area shape="rect"  href="hashcat_8c.html#ade4c61ccaafb16eae04c7d4b727942f3" title=" " alt="" coords="592,17,684,44"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,68,56,95"/>
<area shape="rect"  href="opencl_8c.html#ac62e3f353065d17d4caa46e165be51c2" title=" " alt="" coords="1467,777,1633,804"/>
<area shape="rect"  href="opencl_8c.html#af7aecf5b949a11bafa5f455504b5a8c2" title=" " alt="" coords="2205,271,2367,297"/>
<area shape="rect"  href="opencl_8c.html#a3797f3c2680a9e341e314ad0c84c9b16" title=" " alt="" coords="1936,575,2132,601"/>
<area shape="rect"  href="opencl_8c.html#a0c2e61014e4dab417caa193c598b6a23" title=" " alt="" coords="1755,423,1838,449"/>
<area shape="rect"  href="opencl_8c.html#a707b32d6170142181dc47bc668c03efa" title=" " alt="" coords="2203,220,2369,247"/>
<area shape="rect"  href="opencl_8c.html#aba298160a7f6951fdd26c1e2846e7f9b" title=" " alt="" coords="2180,473,2392,500"/>
<area shape="rect"  href="opencl_8c.html#ab47974684ac3076a5e2fe97db360f1f1" title=" " alt="" coords="1950,917,2118,944"/>
<area shape="rect"  href="opencl_8c.html#a6b505220d582c3a31d651cbe1d685484" title=" " alt="" coords="2223,575,2349,601"/>
<area shape="rect"  href="opencl_8c.html#a1a05fbe1529ac9bd5fcd1a0fed0f0fe7" title=" " alt="" coords="2200,321,2372,348"/>
<area shape="rect"  href="opencl_8c.html#ad598c213dd69579a45ca34bcac1ba552" title=" " alt="" coords="1968,372,2100,399"/>
<area shape="rect"  href="autotune_8c.html#a58022d7cc5d8126f33e8635c5ae62c2b" title=" " alt="" coords="1283,651,1355,677"/>
<area shape="rect"  href="opencl_8c.html#a6b485c94e6a1ed68eb8a230b59947aba" title=" " alt="" coords="1266,727,1373,753"/>
<area shape="rect"  href="opencl_8c.html#af8bef12676549083a86b2986c456f72d" title=" " alt="" coords="1086,777,1177,804"/>
<area shape="rect"  href="autotune_8c.html#a947f89f8de260d6c32e8b003c79ce2c7" title=" " alt="" coords="904,713,1019,740"/>
<area shape="rect"  href="hashcat_8c.html#a9ec4f74d423ae0bd4aa6e960632b7086" title=" " alt="" coords="594,744,682,771"/>
<area shape="rect"  href="hashcat_8c.html#ad6cc36d03dcdad3413c794efecb3178a" title=" " alt="" coords="456,663,544,689"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,499,408,525"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,445,277,472"/>
<area shape="rect"  href="dispatch_8c.html#a0502555fe69aef3e7b8c3886ef18c145" title=" " alt="" coords="938,776,985,803"/>
<area shape="rect"  href="dispatch_8c.html#a274118ca9e580459d6e82f6d61a34d59" title=" " alt="" coords="921,827,1002,853"/>
<area shape="rect"  href="dispatch_8c.html#a45ffdf5a91d67bdc7a27b7fe7d39761a" title=" " alt="" coords="749,772,839,799"/>
<area shape="rect"  href="dispatch_8c.html#a9e518ec031f388304424fb2852075038" title=" " alt="" coords="732,825,856,852"/>
<area shape="rect"  href="opencl_8c.html#a3053f61b5154e477dca1ab3af40fc67f" title=" " alt="" coords="1493,524,1607,551"/>
<area shape="rect"  href="opencl_8c.html#a270475ec734ad9d206b4bfc7a8e7139b" title=" " alt="" coords="1729,676,1865,703"/>
<area shape="rect"  href="opencl_8c.html#a923e021b433067dd09b59522c754d4f4" title=" " alt="" coords="1266,980,1373,1007"/>
<area shape="rect"  href="opencl_8c.html#aa3be407e53521e7f7f0d4de086ee7018" title=" " alt="" coords="1745,625,1849,652"/>
<area shape="rect"  href="autotune_8c.html#ad9235db23bece1366339da9a423d880a" title=" " alt="" coords="1519,423,1581,449"/>
<area shape="rect"  href="weak__hash_8c.html#a410a6e1cce44e8f0c4cde8ec7d00ecd8" title=" " alt="" coords="1067,372,1196,399"/>
<area shape="rect"  href="opencl_8c.html#a402aef449e3c6488d863902358dd0b1d" title=" " alt="" coords="1489,879,1611,905"/>
<area shape="rect"  href="opencl_8c.html#a25858ed9c49bd2972bb375ec8190c2ba" title=" " alt="" coords="1244,1132,1395,1159"/>
<area shape="rect"  href="opencl_8c.html#ad74b845ad0c7ef8fb27e99d419a708a0" title=" " alt="" coords="1094,904,1169,931"/>
<area shape="rect"  href="hashes_8c.html#a98055a12599ed1bd53da5c0694605f3d" title=" " alt="" coords="1264,372,1375,399"/>
<area shape="rect"  href="opencl_8c.html#ade369d76f252c3c3a33a2ffed95c5824" title=" " alt="" coords="1985,245,2083,272"/>
<area shape="rect"  href="outfile_8c.html#acf3cdc6308453bdcab6860307bb3e02d" title=" " alt="" coords="1739,271,1855,297"/>
<area shape="rect"  href="outfile_8c.html#a1553046f7ee2bb2c5568c75baf15e4a8" title=" " alt="" coords="1755,220,1838,247"/>
<area shape="rect"  href="stdout_8c.html#af0583ba5d034d87b6b336f65a220db35" title=" " alt="" coords="1495,271,1605,297"/>
<area shape="rect"  href="hashes_8c.html#a941bbcf804b81ac407d485859bf87999" title=" " alt="" coords="1504,220,1596,247"/>
<area shape="rect"  href="status_8c.html#a923fe03c8487c12bd656a22d6dc3f0b7" title=" " alt="" coords="1443,119,1657,145"/>
<area shape="rect"  href="hashcat_8c.html#a325cba22ef98f99a706d99c65989a2c2" title=" " alt="" coords="1251,195,1387,221"/>
<area shape="rect"  href="main__shared_8c.html#ae96d7808ccfe95bbec7a55e2ada91935" title=" " alt="" coords="1106,195,1157,221"/>
<area shape="rect"  href="opencl_8c.html#a6e6cfbf2cffcded725be07e5f854ba2e" title=" " alt="" coords="1705,1031,1888,1057"/>
<area shape="rect"  href="opencl_8c.html#a36f294a1988a5ff960fa09c9c68de75d" title=" " alt="" coords="1717,1082,1876,1123"/>
<area shape="rect"  href="mpsp_8c.html#a0bc1fdc7efaa7d7cb8d83aea4a87e02e" title=" " alt="" coords="1472,1081,1628,1108"/>
</map>
</div>

</div>
</div>
<a id="a5c2084859a2426c7b75489b724832b6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c2084859a2426c7b75489b724832b6e">&#9670;&nbsp;</a></span>is_power_of_2()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool is_power_of_2 </td>
          <td>(</td>
          <td class="paramtype">const u32&#160;</td>
          <td class="paramname"><em>v</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Author......: See docs/credits.txt License.....: MIT </p>

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00010">10</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;{</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;  <span class="keywordflow">return</span> (v &amp;&amp; !(v &amp; (v - 1)));</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="user__options_8c_source.html#l00356">user_options_sanity()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c_a5c2084859a2426c7b75489b724832b6e_icgraph.gif" border="0" usemap="#shared_8c_a5c2084859a2426c7b75489b724832b6e_icgraph" alt=""/></div>
<map name="shared_8c_a5c2084859a2426c7b75489b724832b6e_icgraph" id="shared_8c_a5c2084859a2426c7b75489b724832b6e_icgraph">
<area shape="rect"  title=" " alt="" coords="291,5,395,32"/>
<area shape="rect"  href="user__options_8c.html#a7efcb02614216c662884049231d3ee22" title=" " alt="" coords="104,5,243,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a997201f624ca11fd08aa39660b7c1d09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a997201f624ca11fd08aa39660b7c1d09">&#9670;&nbsp;</a></span>mydivc32()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 mydivc32 </td>
          <td>(</td>
          <td class="paramtype">const u32&#160;</td>
          <td class="paramname"><em>dividend</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const u32&#160;</td>
          <td class="paramname"><em>divisor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00022">22</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;{</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;  u32 quotient = dividend / divisor;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;  <span class="keywordflow">if</span> (dividend % divisor) quotient++;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  <span class="keywordflow">return</span> quotient;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;}</div></div><!-- fragment -->
</div>
</div>
<a id="a58ba2564d980905f97564922b3712f02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58ba2564d980905f97564922b3712f02">&#9670;&nbsp;</a></span>mydivc64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u64 mydivc64 </td>
          <td>(</td>
          <td class="paramtype">const u64&#160;</td>
          <td class="paramname"><em>dividend</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const u64&#160;</td>
          <td class="paramname"><em>divisor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00031">31</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;{</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  u64 quotient = dividend / divisor;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  <span class="keywordflow">if</span> (dividend % divisor) quotient++;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;  <span class="keywordflow">return</span> quotient;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;}</div></div><!-- fragment -->
</div>
</div>
<a id="a5243867de29adb2b1b3d8c72dca3e963"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5243867de29adb2b1b3d8c72dca3e963">&#9670;&nbsp;</a></span>naive_escape()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void naive_escape </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>s_max</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>key_char</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>escape_char</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00075">75</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;{</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  <span class="keywordtype">char</span> s_escaped[1024] = { 0 };</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  <span class="keywordtype">size_t</span> s_escaped_max = <span class="keyword">sizeof</span> (s_escaped);</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">size_t</span> len = strlen (s);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> in = 0, out = 0; in &lt; len; in++, out++)</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  {</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> c = s[in];</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keywordflow">if</span> (c == key_char)</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    {</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;      s_escaped[out] = escape_char;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;      out++;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    }</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keywordflow">if</span> (out == s_escaped_max - 2) <span class="keywordflow">break</span>;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    s_escaped[out] = c;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;  }</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  strncpy (s, s_escaped, s_max - 1);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="folder_8c_source.html#l00268">folder_config_init()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c_a5243867de29adb2b1b3d8c72dca3e963_icgraph.gif" border="0" usemap="#shared_8c_a5243867de29adb2b1b3d8c72dca3e963_icgraph" alt=""/></div>
<map name="shared_8c_a5243867de29adb2b1b3d8c72dca3e963_icgraph" id="shared_8c_a5243867de29adb2b1b3d8c72dca3e963_icgraph">
<area shape="rect"  title=" " alt="" coords="463,5,563,32"/>
<area shape="rect"  href="folder_8c.html#a6685756c6c027b0fb21b7b357326b358" title=" " alt="" coords="296,5,415,32"/>
<area shape="rect"  href="hashcat_8c.html#a9f3f1b757bdc2a874b4bb0dc657bde1d" title=" " alt="" coords="104,5,248,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a1322f76e741a3aeb3e88d330c13c6d28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1322f76e741a3aeb3e88d330c13c6d28">&#9670;&nbsp;</a></span>naive_replace()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void naive_replace </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>key_char</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>replace_char</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00060">60</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;{</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">size_t</span> len = strlen (s);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> in = 0; in &lt; len; in++)</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  {</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span> c = s[in];</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordflow">if</span> (c == key_char)</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    {</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;      s[in] = replace_char;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    }</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  }</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="folder_8c_source.html#l00268">folder_config_init()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c_a1322f76e741a3aeb3e88d330c13c6d28_icgraph.gif" border="0" usemap="#shared_8c_a1322f76e741a3aeb3e88d330c13c6d28_icgraph" alt=""/></div>
<map name="shared_8c_a1322f76e741a3aeb3e88d330c13c6d28_icgraph" id="shared_8c_a1322f76e741a3aeb3e88d330c13c6d28_icgraph">
<area shape="rect"  title=" " alt="" coords="463,5,563,32"/>
<area shape="rect"  href="folder_8c.html#a6685756c6c027b0fb21b7b357326b358" title=" " alt="" coords="296,5,415,32"/>
<area shape="rect"  href="hashcat_8c.html#a9f3f1b757bdc2a874b4bb0dc657bde1d" title=" " alt="" coords="104,5,248,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a2657fd919185f7516449e460e3cbeefa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2657fd919185f7516449e460e3cbeefa">&#9670;&nbsp;</a></span>setup_environment_variables()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setup_environment_variables </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00182">182</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;{</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;  <span class="keywordtype">char</span> *compute = getenv (<span class="stringliteral">&quot;COMPUTE&quot;</span>);</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;  <span class="keywordflow">if</span> (compute)</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;  {</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">char</span> display[100];</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    snprintf (display, <span class="keyword">sizeof</span> (display) - 1, <span class="stringliteral">&quot;DISPLAY=%s&quot;</span>, compute);</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    putenv (display);</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;  }</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;  <span class="keywordflow">else</span></div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;  {</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    <span class="keywordflow">if</span> (getenv (<span class="stringliteral">&quot;DISPLAY&quot;</span>) == NULL)</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;      putenv ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;DISPLAY=:0&quot;</span>);</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;  }</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;  <span class="keywordflow">if</span> (getenv (<span class="stringliteral">&quot;GPU_FORCE_64BIT_PTR&quot;</span>) == NULL)</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    putenv ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;GPU_FORCE_64BIT_PTR=1&quot;</span>);</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;  <span class="keywordflow">if</span> (getenv (<span class="stringliteral">&quot;GPU_MAX_ALLOC_PERCENT&quot;</span>) == NULL)</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    putenv ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;GPU_MAX_ALLOC_PERCENT=100&quot;</span>);</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;  <span class="keywordflow">if</span> (getenv (<span class="stringliteral">&quot;GPU_SINGLE_ALLOC_PERCENT&quot;</span>) == NULL)</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    putenv ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;GPU_SINGLE_ALLOC_PERCENT=100&quot;</span>);</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;  <span class="keywordflow">if</span> (getenv (<span class="stringliteral">&quot;GPU_MAX_HEAP_SIZE&quot;</span>) == NULL)</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    putenv ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;GPU_MAX_HEAP_SIZE=100&quot;</span>);</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;  <span class="keywordflow">if</span> (getenv (<span class="stringliteral">&quot;CPU_FORCE_64BIT_PTR&quot;</span>) == NULL)</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    putenv ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;CPU_FORCE_64BIT_PTR=1&quot;</span>);</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;  <span class="keywordflow">if</span> (getenv (<span class="stringliteral">&quot;CPU_MAX_ALLOC_PERCENT&quot;</span>) == NULL)</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    putenv ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;CPU_MAX_ALLOC_PERCENT=100&quot;</span>);</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;  <span class="keywordflow">if</span> (getenv (<span class="stringliteral">&quot;CPU_SINGLE_ALLOC_PERCENT&quot;</span>) == NULL)</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    putenv ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;CPU_SINGLE_ALLOC_PERCENT=100&quot;</span>);</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;  <span class="keywordflow">if</span> (getenv (<span class="stringliteral">&quot;CPU_MAX_HEAP_SIZE&quot;</span>) == NULL)</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    putenv ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;CPU_MAX_HEAP_SIZE=100&quot;</span>);</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;  <span class="keywordflow">if</span> (getenv (<span class="stringliteral">&quot;GPU_USE_SYNC_OBJECTS&quot;</span>) == NULL)</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    putenv ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;GPU_USE_SYNC_OBJECTS=1&quot;</span>);</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;  <span class="keywordflow">if</span> (getenv (<span class="stringliteral">&quot;CUDA_CACHE_DISABLE&quot;</span>) == NULL)</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    putenv ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;CUDA_CACHE_DISABLE=1&quot;</span>);</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;  <span class="keywordflow">if</span> (getenv (<span class="stringliteral">&quot;POCL_KERNEL_CACHE&quot;</span>) == NULL)</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    putenv ((<span class="keywordtype">char</span> *) <span class="stringliteral">&quot;POCL_KERNEL_CACHE=0&quot;</span>);</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hashcat_8c_source.html#l00833">hashcat_session_init()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c_a2657fd919185f7516449e460e3cbeefa_icgraph.gif" border="0" usemap="#shared_8c_a2657fd919185f7516449e460e3cbeefa_icgraph" alt=""/></div>
<map name="shared_8c_a2657fd919185f7516449e460e3cbeefa_icgraph" id="shared_8c_a2657fd919185f7516449e460e3cbeefa_icgraph">
<area shape="rect"  title=" " alt="" coords="296,5,483,32"/>
<area shape="rect"  href="hashcat_8c.html#a9f3f1b757bdc2a874b4bb0dc657bde1d" title=" " alt="" coords="104,5,248,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="aa9d3b954c23d31f69d8c976490457da6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9d3b954c23d31f69d8c976490457da6">&#9670;&nbsp;</a></span>setup_seeding()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setup_seeding </td>
          <td>(</td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>rp_gen_seed_chgd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const u32&#160;</td>
          <td class="paramname"><em>rp_gen_seed</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00239">239</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;{</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;  <span class="keywordflow">if</span> (rp_gen_seed_chgd == <span class="keyword">true</span>)</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;  {</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    srand (rp_gen_seed);</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;  }</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;  <span class="keywordflow">else</span></div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;  {</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    time_t ts;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    time (&amp;ts);</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    srand (ts);</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;  }</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hashcat_8c_source.html#l00833">hashcat_session_init()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c_aa9d3b954c23d31f69d8c976490457da6_icgraph.gif" border="0" usemap="#shared_8c_aa9d3b954c23d31f69d8c976490457da6_icgraph" alt=""/></div>
<map name="shared_8c_aa9d3b954c23d31f69d8c976490457da6_icgraph" id="shared_8c_aa9d3b954c23d31f69d8c976490457da6_icgraph">
<area shape="rect"  title=" " alt="" coords="296,5,403,32"/>
<area shape="rect"  href="hashcat_8c.html#a9f3f1b757bdc2a874b4bb0dc657bde1d" title=" " alt="" coords="104,5,248,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="ad3cf1b86213af6a19cdd7d2e8fa2ef2e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad3cf1b86213af6a19cdd7d2e8fa2ef2e">&#9670;&nbsp;</a></span>setup_umask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setup_umask </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="shared_8c_source.html#l00234">234</a> of file <a class="el" href="shared_8c_source.html">shared.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;{</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;  umask (077);</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;}</div></div><!-- fragment -->
<p class="reference">Referenced by <a class="el" href="hashcat_8c_source.html#l00833">hashcat_session_init()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="shared_8c_ad3cf1b86213af6a19cdd7d2e8fa2ef2e_icgraph.gif" border="0" usemap="#shared_8c_ad3cf1b86213af6a19cdd7d2e8fa2ef2e_icgraph" alt=""/></div>
<map name="shared_8c_ad3cf1b86213af6a19cdd7d2e8fa2ef2e_icgraph" id="shared_8c_ad3cf1b86213af6a19cdd7d2e8fa2ef2e_icgraph">
<area shape="rect"  title=" " alt="" coords="296,5,396,32"/>
<area shape="rect"  href="hashcat_8c.html#a9f3f1b757bdc2a874b4bb0dc657bde1d" title=" " alt="" coords="104,5,248,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
